package pers.husen.highdsa.service.redis;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Desc 测试redis服务
 *
 * @Author 何明胜
 *
 * @Created at 2018年2月5日 下午1:03:55
 * 
 * @Version 1.0.1
 */
public class RegisterRedisService {
	public static void main(String[] args) throws IOException {
		String[] configLocation = new String[] { "classpath:spring/dubbo-service-redis.xml", "classpath:spring/spring-context.xml" };
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(configLocation);
		context.start();

		System.out.println("=============== redis服务已经启动... ==================");

		System.in.read();
		context.close();
	}
}